<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	
	<title>Login Page</title>
	
	<link rel="stylesheet" type="text/css" href="style-login.css" />
    <script>
function checkinput(){
if(document.forms.admin.users_user.value == "")
	{
		alert("กรุณากรอกชื่อด้วยน่ะค่ะ");		//alert with appropriate message
		document.forms.admin.users_user.select();	//place cursor on the input box
		return false;
	}
	if(document.forms.admin.users_pass.value == "")
	{
		alert("กรุณากรอก\nรหัสผ่านด้วยนะครับ");		//alert with appropriate message
		document.forms.admin.users_pass.select();	//place cursor on the input box
		return false;
	}
}

</script>
    
    
</head>

<body>


<form action="check_admin.php" method="post" enctype="multipart/form-data" name="admin" onSubmit="return checkinput();">
<fieldset>
		
			<legend>Log in</legend>
			
			<label for="login"><b><font color="#0000CC">ชื่อผู้ใช้</font></b></label>
            <input name="users_user" type="text" id="users_user" size="30">
			<div class="clear"></div>
			
			<label for="password"><b><font color="#0000CC">รหัสผ่าน</font></b></label>
            <input name="users_pass" type="password" id="users_pass" size="30">
			<div class="clear"></div>
			
			<label for="remember_me" style="padding: 0;"></label>
		<div class="clear"></div>
			
			<br />
	        <input type="submit" style="margin: -20px 0 0 287px;" class="button" name="commit" value="เข้าสู่ระบบ"/>
             
	  </fieldset>
	</form>
	
</body>

</html>